package com.cqfae.deploycentral.app.web.vo;

import com.cqfae.deploycentral.app.dao.entity.ReportTestLink;

import java.io.Serializable;

/**
 * Created by JIANGLU on 2017/11/29.
 */
public class ReportTestLinkVo implements Serializable {


    private Long id;

    private String reportCode;

    private String tprjid;

    private String tprjname;

    private String testplanid;

    private Long versionId;

    private String versionName;


    public ReportTestLinkVo() {
        super();
    }

    public ReportTestLinkVo(ReportTestLink model) {
        setId(model.getId());
        setReportCode(model.getReportCode());
        setTprjid(model.getTprjid());
        setTprjname(model.getTprjname());
        setTestplanid(model.getTestplanid());
        setVersionId(model.getVersionId());
        setVersionName(model.getVersionName());
    }

    public ReportTestLink parseModel() {
        ReportTestLink info = new ReportTestLink();
        info.setId(getId());
        info.setReportCode(getReportCode());
        info.setTprjid(getTprjid());
        info.setTprjname(getTprjname());
        info.setTestplanid(getTestplanid());
        info.setVersionId(getVersionId());
        info.setVersionName(getVersionName());
        return info;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getReportCode() {
        return reportCode;
    }

    public void setReportCode(String reportCode) {
        this.reportCode = reportCode;
    }

    public String getTprjid() {
        return tprjid;
    }

    public void setTprjid(String tprjid) {
        this.tprjid = tprjid;
    }

    public String getTprjname() {
        return tprjname;
    }

    public void setTprjname(String tprjname) {
        this.tprjname = tprjname;
    }

    public String getTestplanid() {
        return testplanid;
    }

    public void setTestplanid(String testplanid) {
        this.testplanid = testplanid;
    }

    public Long getVersionId() {
        return versionId;
    }

    public void setVersionId(Long versionId) {
        this.versionId = versionId;
    }

    public String getVersionName() {
        return versionName;
    }

    public void setVersionName(String versionName) {
        this.versionName = versionName;
    }
}
